package com.tyk.bookstore.back.system.model.query;

import com.tyk.bookstore.back.common.core.model.type.Gender;
import com.tyk.bookstore.back.common.core.util.FileUtil;
import lombok.Data;

@Data
public class UpdateUserInfoQuery {

	private Long id;

	private String avatar;

	private String password;

	private String phone;

	private String email;

	private String name;

	private Gender gender;

	private Integer age;

	private String idCard;

	public UpdateUserInfoQuery setAvatar(String avatar) {
		this.avatar = FileUtil.relativePath(avatar);
		return this;
	}
}
